package com.yxw.yxnet_cd_center.customer_service.dto;

import com.yxw.yxnet_cd_center.customer_service.vo.MemberVo;
import com.yxw.yxnet_cd_center.customer_service.vo.UserChooseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 设置群DTO
 * @author liuxin
 * @date 2023.09.15
 */
@Data
@ApiModel(value="FlockDTO", description="群信息")
public class FlockDTO implements Serializable {

    @ApiModelProperty(value = "群ID")
    private Long id;

    @NotBlank(message = "群名称不能为空")
    @ApiModelProperty(value = "群名称")
    private String flockName;

    @NotNull(message = "关联项目不能为空")
    @ApiModelProperty(value = "关联项目")
    private Long projectType;

    @NotNull(message = "端口不能为空")
    @ApiModelProperty(value = "端口")
    private Long portId;

    @NotNull(message = "群主不能为空")
    @ApiModelProperty(value = "群主ID")
    private Long leaderId;

    @NotNull(message = "服务类型不能为空")
    @ApiModelProperty(value = "服务类型")
    private Long serviceType;

    @Valid
//    @Size(min=2,message = "群成员请选择至少两位人员")
    @NotEmpty(message = "群成员不能为空")
    @ApiModelProperty(value = "群成员")
    List<Long> userIdList;

    @ApiModelProperty(value = "群主")
    private String leaderName;
}
